<template>
<!-- 分页器 -->
  <div class="sowa">
    <div class="soda">
      共{{overa}}条记录&nbsp;&nbsp;<span>第&nbsp;{{ present }}/{{ overall }}&nbsp;页</span
      >
    </div>
    <div class="water">
      <el-button   type="primary" @click="addFn(-1)">上一页</el-button>
      <el-button  type="primary" @click="addFn(1)">下一页</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'aa-aav',
  props: {
    overall: {
      type: String,
      required: true
    },
    overa: {
      type: String,
      required: true
    },
    present: {
      type: String,
      required: true
    }
  },
  data () {
    return {
      but: true
    }
  },
  methods: {
    addFn (sum) {
      this.$emit('addFn', sum)
    }
  }
}
</script>

<style scoped lang="scss">
.sowa {
  width: 100%;
  height: 40px;
  margin: 40px 0;
  // background-color: rgb(127, 53, 53);
  display: flex;
  // justify-content: space-between;
  .soda {
    width: 80%;
    line-height: 32px;
    font-size: 20px;
    color: #dbdfe5!important;;
    span {
      margin-left: 10px;
      margin-right: 5px;
      font-size: 18px;
    }
  }
  .water {
    width: 20%;
    margin-right: 15px;
    // background-color: rgb(119, 42, 42);
  }
}
</style>
